import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import testc1 from './components/testc1.vue';
import HelloWorld from './components/HelloWorld.vue';

import ElementUI from 'element-ui';//1
import 'element-ui/lib/theme-chalk/index.css';//2
//导入v-md-edit 插件
import VMdEditor from '@kangc/v-md-editor';
//导入v-md-edit 插件样式
import '@kangc/v-md-editor/lib/style/base-editor.css';
//导入代码高亮模式，为github模式
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
//导入代码高亮样式
import '@kangc/v-md-editor/lib/theme/style/github.css';
//导入highlightjs
import hljs from 'highlight.js';


Vue.use(ElementUI);//3
Vue.use(VMdEditor);
VMdEditor.use(githubTheme, {
  Hljs: hljs,
});
Vue.component('HelloWorld', HelloWorld)
Vue.component('testc1', testc1)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
